﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MkvSplicer
{
    class Logger
    {
        public static event LogHandler logger;
        public static event ConfirmHandler confirmHandler;
        public delegate void LogHandler(string fmt, params object[] items);
        public delegate bool ConfirmHandler(string fmt, params object[] items);

        public static void log(string fmt, params object[] items)
        {
            if (logger != null)
            {
                logger(fmt, items);
            }
        }

        public static void confirm(string fmt, params object[] items)
        {
            if (confirmHandler != null)
            {
                confirmHandler(fmt, items);
            }
        }
    }
}
